package com.drug.mingkang.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * 生产计划单(HqPlan)实体类
 *
 * @author xqj
 * @since 2020-08-11 12:00:13
 */
public class HqPlan implements Serializable {
    private static final long serialVersionUID = -98456878256974069L;
  /**
    * 生产计划单ID
    */
    private String planId;
  /**
    * 计划总数量
    */
    private Integer planNum;
  /**
    * 计划总金额
    */
    private Double planPrice;
  /**
    * 状态
    */
    private Integer state;
  /**
    * 是否有效
    */
    private Integer isva;
  /**
    * 操作时间
    *
    *@JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")出参
    * @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")入参
    */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date optime;
  /**
    * 生产时间
    */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date planKtime;
  /**
    * 生产时间结束
    */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date planJtime;
  /**
    * 操作人
    */
    private String oper;
  /**
    * 备注
    */
    private String remark;
  /**
    * 排序
    */


    private Integer sort;

    /**
     * 生产名称
     */
    private String planName;

    /**
     * 审核状态
     */
    private String auditStatus;

    public String getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(String auditStatus) {
        this.auditStatus = auditStatus;
    }

    public String getPlanName() {
        return planName;
    }

    public void setPlanName(String planName) {
        this.planName = planName;
    }

    private Integer page;

    private Integer limit;

    private Integer offset;

    public Integer getOffset() {
        if(page!=null){
            offset = (page-1)*limit;
        }
        return offset;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public String getPlanId() {
        return planId;
    }

    public void setPlanId(String planId) {
        this.planId = planId;
    }
  
    public Integer getPlanNum() {
        return planNum;
    }

    public void setPlanNum(Integer planNum) {
        this.planNum = planNum;
    }
  
    public Double getPlanPrice() {
        return planPrice;
    }

    public void setPlanPrice(Double planPrice) {
        this.planPrice = planPrice;
    }
  
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
  
    public Integer getIsva() {
        return isva;
    }

    public void setIsva(Integer isva) {
        this.isva = isva;
    }
  
    public Date getOptime() {
        return optime;
    }

    public void setOptime(Date optime) {
        this.optime = optime;
    }
  
    public Date getPlanKtime() {
        return planKtime;
    }

    public void setPlanKtime(Date planKtime) {
        this.planKtime = planKtime;
    }
  
    public Date getPlanJtime() {
        return planJtime;
    }

    public void setPlanJtime(Date planJtime) {
        this.planJtime = planJtime;
    }
  
    public String getOper() {
        return oper;
    }

    public void setOper(String oper) {
        this.oper = oper;
    }
  
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
  
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "HqPlan{" +
                "planId='" + planId + '\'' +
                ", planNum=" + planNum +
                ", planPrice=" + planPrice +
                ", state=" + state +
                ", isva=" + isva +
                ", optime=" + optime +
                ", planKtime=" + planKtime +
                ", planJtime=" + planJtime +
                ", oper='" + oper + '\'' +
                ", remark='" + remark + '\'' +
                ", sort=" + sort +
                ", planName='" + planName + '\'' +
                ", page=" + page +
                ", limit=" + limit +
                ", offset=" + offset +
                '}';
    }
}